package com.ecoolex.ying.space.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class PickGoodsChannelExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public PickGoodsChannelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public PickGoodsChannelExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public PickGoodsChannelExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        PickGoodsChannelExample example = new PickGoodsChannelExample();
        return example.createCriteria();
    }

    public PickGoodsChannelExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public PickGoodsChannelExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public PickGoodsChannelExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public PickGoodsChannelExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public PickGoodsChannelExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andChannelIdIsNull() {
            addCriterion("pickgoodschannel.ChannelId is null");
            return (Criteria) this;
        }

        public Criteria andChannelIdIsNotNull() {
            addCriterion("pickgoodschannel.ChannelId is not null");
            return (Criteria) this;
        }

        public Criteria andChannelIdEqualTo(Integer value) {
            addCriterion("pickgoodschannel.ChannelId =", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.ChannelId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChannelIdNotEqualTo(Integer value) {
            addCriterion("pickgoodschannel.ChannelId <>", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.ChannelId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThan(Integer value) {
            addCriterion("pickgoodschannel.ChannelId >", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.ChannelId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pickgoodschannel.ChannelId >=", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.ChannelId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThan(Integer value) {
            addCriterion("pickgoodschannel.ChannelId <", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.ChannelId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThanOrEqualTo(Integer value) {
            addCriterion("pickgoodschannel.ChannelId <=", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.ChannelId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChannelIdIn(List<Integer> values) {
            addCriterion("pickgoodschannel.ChannelId in", values, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotIn(List<Integer> values) {
            addCriterion("pickgoodschannel.ChannelId not in", values, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdBetween(Integer value1, Integer value2) {
            addCriterion("pickgoodschannel.ChannelId between", value1, value2, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pickgoodschannel.ChannelId not between", value1, value2, "channelId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdIsNull() {
            addCriterion("pickgoodschannel.PickGoodsId is null");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdIsNotNull() {
            addCriterion("pickgoodschannel.PickGoodsId is not null");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdEqualTo(Integer value) {
            addCriterion("pickgoodschannel.PickGoodsId =", value, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.PickGoodsId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdNotEqualTo(Integer value) {
            addCriterion("pickgoodschannel.PickGoodsId <>", value, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.PickGoodsId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdGreaterThan(Integer value) {
            addCriterion("pickgoodschannel.PickGoodsId >", value, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.PickGoodsId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pickgoodschannel.PickGoodsId >=", value, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.PickGoodsId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdLessThan(Integer value) {
            addCriterion("pickgoodschannel.PickGoodsId <", value, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.PickGoodsId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("pickgoodschannel.PickGoodsId <=", value, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.PickGoodsId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdIn(List<Integer> values) {
            addCriterion("pickgoodschannel.PickGoodsId in", values, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdNotIn(List<Integer> values) {
            addCriterion("pickgoodschannel.PickGoodsId not in", values, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("pickgoodschannel.PickGoodsId between", value1, value2, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andPickGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pickgoodschannel.PickGoodsId not between", value1, value2, "pickGoodsId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("pickgoodschannel.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("pickgoodschannel.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("pickgoodschannel.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("pickgoodschannel.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("pickgoodschannel.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("pickgoodschannel.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("pickgoodschannel.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("pickgoodschannel.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("pickgoodschannel.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("pickgoodschannel.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("pickgoodschannel.Price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("pickgoodschannel.Price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(String value) {
            addCriterion("pickgoodschannel.Price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Price = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(String value) {
            addCriterion("pickgoodschannel.Price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Price <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(String value) {
            addCriterion("pickgoodschannel.Price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Price > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.Price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Price >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(String value) {
            addCriterion("pickgoodschannel.Price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Price < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.Price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Price <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPriceLike(String value) {
            addCriterion("pickgoodschannel.Price like", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotLike(String value) {
            addCriterion("pickgoodschannel.Price not like", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<String> values) {
            addCriterion("pickgoodschannel.Price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<String> values) {
            addCriterion("pickgoodschannel.Price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.Price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.Price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andContactIsNull() {
            addCriterion("pickgoodschannel.Contact is null");
            return (Criteria) this;
        }

        public Criteria andContactIsNotNull() {
            addCriterion("pickgoodschannel.Contact is not null");
            return (Criteria) this;
        }

        public Criteria andContactEqualTo(String value) {
            addCriterion("pickgoodschannel.Contact =", value, "contact");
            return (Criteria) this;
        }

        public Criteria andContactEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Contact = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactNotEqualTo(String value) {
            addCriterion("pickgoodschannel.Contact <>", value, "contact");
            return (Criteria) this;
        }

        public Criteria andContactNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Contact <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactGreaterThan(String value) {
            addCriterion("pickgoodschannel.Contact >", value, "contact");
            return (Criteria) this;
        }

        public Criteria andContactGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Contact > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactGreaterThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.Contact >=", value, "contact");
            return (Criteria) this;
        }

        public Criteria andContactGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Contact >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactLessThan(String value) {
            addCriterion("pickgoodschannel.Contact <", value, "contact");
            return (Criteria) this;
        }

        public Criteria andContactLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Contact < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactLessThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.Contact <=", value, "contact");
            return (Criteria) this;
        }

        public Criteria andContactLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Contact <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContactLike(String value) {
            addCriterion("pickgoodschannel.Contact like", value, "contact");
            return (Criteria) this;
        }

        public Criteria andContactNotLike(String value) {
            addCriterion("pickgoodschannel.Contact not like", value, "contact");
            return (Criteria) this;
        }

        public Criteria andContactIn(List<String> values) {
            addCriterion("pickgoodschannel.Contact in", values, "contact");
            return (Criteria) this;
        }

        public Criteria andContactNotIn(List<String> values) {
            addCriterion("pickgoodschannel.Contact not in", values, "contact");
            return (Criteria) this;
        }

        public Criteria andContactBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.Contact between", value1, value2, "contact");
            return (Criteria) this;
        }

        public Criteria andContactNotBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.Contact not between", value1, value2, "contact");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("pickgoodschannel.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("pickgoodschannel.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("pickgoodschannel.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("pickgoodschannel.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("pickgoodschannel.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("pickgoodschannel.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("pickgoodschannel.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("pickgoodschannel.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("pickgoodschannel.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("pickgoodschannel.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("pickgoodschannel.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("pickgoodschannel.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("pickgoodschannel.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("pickgoodschannel.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("pickgoodschannel.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("pickgoodschannel.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("pickgoodschannel.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("pickgoodschannel.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("pickgoodschannel.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("pickgoodschannel.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("pickgoodschannel.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("pickgoodschannel.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("pickgoodschannel.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("pickgoodschannel.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("pickgoodschannel.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("pickgoodschannel.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("pickgoodschannel.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pickgoodschannel.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("pickgoodschannel.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("pickgoodschannel.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("pickgoodschannel.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("pickgoodschannel.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("pickgoodschannel.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("pickgoodschannel.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("pickgoodschannel.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("pickgoodschannel.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("pickgoodschannel.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("pickgoodschannel.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("pickgoodschannel.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("pickgoodschannel.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("pickgoodschannel.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("pickgoodschannel.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("pickgoodschannel.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("pickgoodschannel.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("pickgoodschannel.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("pickgoodschannel.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("pickgoodschannel.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("pickgoodschannel.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("pickgoodschannel.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("pickgoodschannel.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("pickgoodschannel.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pickgoodschannel.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("pickgoodschannel.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("pickgoodschannel.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(PickGoodsChannel.Column column) {
            addCriterion(new StringBuilder("pickgoodschannel.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("pickgoodschannel.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("pickgoodschannel.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("pickgoodschannel.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("pickgoodschannel.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private PickGoodsChannelExample example;

        protected Criteria(PickGoodsChannelExample example) {
            super();
            this.example = example;
        }

        public PickGoodsChannelExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(PickGoodsChannel.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(PickGoodsChannel.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.ying.space.entity.PickGoodsChannelExample example);
    }
}